#version 330 core
// vim: set filetype=cpp :vim

uniform mat4 mProj;
uniform float umpp;


uniform vec4 color[4];
flat in int colori;

layout(location=0) out vec4 fColor;

void main(void) {
	float alpha=0;
	// (r-umpp)^2<=r-sqrt(r^2-dz^2)<2*umpp
	alpha=1.0;

	fColor=vec4(color[colori].rgb, alpha);
}

